const state = {
  category1Id: undefined,
  category2Id: undefined,
  category3Id: undefined,
};
const mutations = {
  GET_CATEGORY1LIST: (state, id) => {
    state.category1Id = id;
  },
  GET_CATEGORY2LIST: (state, id) => {
    state.category2Id = id;
  },
  GET_CATEGORY3LIST: (state, id) => {
    state.category3Id = id;
    // console.log(state.category3Id);
  },
};
const actions = {
  getCategory1Id({ commit }, id) {
    commit("GET_CATEGORY1LIST", id);
  },
  getCategory2Id({ commit }, id) {
    commit("GET_CATEGORY2LIST", id);
  },
  getCategory3Id({ commit }, id) {
    commit("GET_CATEGORY3LIST", id);
  },
};
export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
